package com.lanchetech.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lanchetech.bean.request.ActivityBindSpuReq;
import com.lanchetech.entity.ActivityBindSpu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityBindSpuMapper extends BaseMapper<ActivityBindSpu> {

    /**
     * 查看列表
     * @param bindSpu
     * @return
     */
    List<ActivityBindSpu> getList(@Param("req") ActivityBindSpu bindSpu);

    List<ActivityBindSpu> getMerchantList(@Param("req") ActivityBindSpuReq req);

    ActivityBindSpu findBySkuIdAndActivityId(@Param("skuId") Long skuId, @Param("activityId") Long activityId);
}